<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>本地flex测试</title>
    <style>
        .box {
            color: white;
            background-color: #f99;
            border: 1px solid #f99;
            border-radius: 2px;
            font-size: 14px;
        }

        .box {
            display: flex;
            height: 300px;


            flex-wrap: wrap;/*是否换行，默认不换行，一般做布局时也不换行*/

            justify-content: center;/*竖向轴，之间如何对齐*/
            align-items: center;/*横向轴，里面的内容相对于轴如何对齐，前提是横向轴比元素高*/
            
            
            align-content: stretch;/*横向轴，之间如何对齐，前提是有多行内容*/
            
        }

        .item {
            width: 400px;
            background-color: wheat;
            margin: 10px;


            text-align: center;
            font-size: 20px;

        }

        .item5{
            align-self: flex-end;
        }

    </style>
</head>

<body>

    <div class="box">
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4</div>
        <div class="item item5">5</div>
        <div class="item">6</div>
    </div>


</body>

</html>